using UnityEngine; using System.Collections; using EnhancedUI.EnhancedScroller; namespace EnhancedScrollerDemos.MultipleCellTypesDemo { /// /// This is the base class for the different cell types. We use a base class /// to make calling SetData easier in the demo script. /// public class CellView : EnhancedScrollerCellView { /// /// Internal reference to our base data class /// protected Data _data; /// /// Sets the data for the cell view. Note that the base data class is passed in, /// but through polymorphism we will actually pass the inherited data classes /// /// public virtual void SetData(Data data) { _data = data; } } }